<form id="pagerForm" action="__URL__/ads" method="post">
	<input type="hidden" name="pageNum" value="{$currentPage}" />
	<input type="hidden" name="numPerPage" value="{$pagesize}" />
	<input type="hidden" name="name" value="{$a}"/>
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" method="post" action="__APP__/Admin/Channel/ads">
	<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						搜索名称：
							   <input type="text" name="name" />
					</td>
					<td>
						<div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div>
					</td>
				</tr>
			</table>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__APP__/Admin/Channel/adsAdd" target="dialog" mask="true" height="220" title="添加新文件"><span>添加新文件</span></a>
			</li>
			<li><a class="line"></a>
			</li>
			<li><a class="add" href="__APP__/Admin/Channel/ads" target="navTab" mask="true" height="480" title="所有文件"><span>所有文件</span></a>
			</li>			
		</ul>
	</div>

	<table class="table" width="100%" layoutH="112">
		<thead>
		<tr>
			<th width="140" orderField="id"  class="<{$smarty.post.orderDirection}>" >标题</th>
			<th width="180" orderField="name"  class="<{$smarty.post.orderDirection}>" >
				文件名</th>
			<th width="60">URl</th>
			<th >操作</th>
		</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr>
				<td>{$vo.Name}</td>
				<td>{$vo.Src}</td>
				<td>{$vo.Url}</td>
				<td>
					<a href="__APP__/Admin/Channel/adsDelete/id/{$vo.id}/navTabId/ads" target="ajaxTodo">删除</a>
				</td>
			</tr>
			</volist>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>共<{$totalCount}>条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$pagesize}" currentPage="{$currentPage}"></div>
	</div>
</div>
